package com.tf.temper.service.impl;


import com.tf.temper.dao.DeviceSettingDao;
import com.tf.temper.entity.DeviceSettingEntity;
import com.tf.temper.service.DeviceSettingService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("deviceSettingService")
public class DeviceSettingServiceImpl extends ServiceImpl<DeviceSettingDao, DeviceSettingEntity> implements DeviceSettingService<DeviceSettingEntity>
{
    public PageUtils<DeviceSettingEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<DeviceSettingEntity> ew = new EntityWrapperHandle<DeviceSettingEntity>(params);
        Page<DeviceSettingEntity> page = this.selectPage(new Query<DeviceSettingEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<DeviceSettingEntity>(page);
    }

    public List<DeviceSettingEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
